<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			
			li{
				list-style: none;
				text-align: center;
			}
			.wraper{
				/*height: 500px;*/
				background: #386FA6;
				
			}
			.nav{
				/*height: 300px;*/
				width: 960px;
				margin: auto;
				/*border: 1px solid #CC0000;*/
				margin-top: -50px;
				overflow: hidden;
				
			}
			.nav a{
				text-decoration: none;
				color: #fff;
			}
			.nav li {
				
				width: 150px;
				float: left;
			}
			.nav>ul>li>a{
				line-height: 50px;
				
			}
			.navbg{
				height: 50px;
				background: #459DF5;
			}
			.nav ul ul li{
				line-height: 2;
				float: none;
			}
			.nav>ul{
				overflow: hidden;
				
			}
			.nav>ul>li>ul>li>a:hover{
				text-decoration: underline;
				color: #FFC0CB;
			}
			.nav>ul>li:hover {
				background: rgba(0,0,0,0.3);
			}
			.nav>ul>li{
				padding-bottom: 30px;	
			}
			/*.nav>ul ul{
				display: none;
			}*/
		</style>
	</head>
	<body>
	<div class="wraper">
		<div class="navbg"></div>
		<div class="nav">
			<ul>
				<li>
					<a href="javascript:void(0)">首页</a>
					<ul>
						<li></li>
					</ul>
				</li>
				<li>
					<a href="javascript:void(0)">关于我们</a>
					<ul>
						<li><a href="#">团队介绍</a></li>
						<li><a href="#">服务QQ群</a></li>
						<li><a href="#">个人业务</a></li>
					</ul>
				</li>
				<li>
					<a href="javascript:void(0)">软件下载</a>
					<ul>
						<li><a href="#">Web编译工具</a></li>
						<li><a href="#">左面整理工具</a></li>
					</ul>
				</li>
				<li>
					<a href="javascript:void(0)">招贤纳士</a>
					<ul>
						<li><a href="#">Web前端工程师</a></li>
						<li><a href="#">JavaWeb前端工程师</a></li>
						<li><a href="#">App开发工程师</a></li>
						<li><a href="#">数据库工程师</a></li>
						<li><a href="#">软件架构师</a></li>
						<li><a href="#">技术客服</a></li>
					</ul>
				</li>
				<li>
					<a href="javascript:void(0)">给我留言</a>
					<ul>
						<li><a href="#">站内留言</a></li>
						<li><a href="#">站长信箱</a></li>
					</ul>
				</li>
			</ul>
		</div>
		
	</div>
	
	<script src="jquery-1.11.2.min.js"></script>
	<script type="text/javascript">
		$(function(){
			var minheight = 50;
			var maxheight = $('.nav').height();
			/*$('.nav>ul>li').mouseenter(function(){
				$(this).addClass('hover').siblings().removeClass('hover');
			}).height(maxheight);
			$('.nav').height(minheight).mouseenter(function(){
				$(this).stop().animate({
					height:maxheight
				},400);
			});
			$('.nav').mouseleave(function(){
				$(this).stop().animate({
					height:minheight
				},400).children().find('li').removeClass('hover');
			});*/
			
			
			
			
			$('.nav>ul>li').height(maxheight);
			$('.nav').height(minheight).mouseenter(function(){
				$(this).stop().animate({
					height:maxheight
				},400);
			});
			$('.nav').mouseleave(function(){
				$(this).stop().animate({
					height:minheight
				},400).children().find('li').removeClass('hover');
			});
		});
	</script>
	</body>
</html>
